<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <fmt:setBundle basename="ApplicationMessage" />
  <fmt:setLocale value="zh_CN" />

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  <link href="${ctx.resource}/css/select2.css" rel="stylesheet">
  <link href="${ctx.resource}/css/select2-bootstrap.css" rel="stylesheet">
  <link href="${ctx.resource}/css/bootstrap-datetimepicker.min.css" rel="stylesheet">

</head>
<body style="padding:20px;">    
    
      <h4 class="vertical-margin-10">本次未提款订单列表</h4>
      <p>打印时间：<fmt:formatDate value="${time}" pattern="yyyy-MM-dd hh:mm:ss" /></p>
      <div class="detail table-warp" style="width:100%">
      
        <div class="panel panel-default">
        
          <div class="panel-body">
            
          </div>
          
          <div class="panel-footer">
            <table class="table table-striped demo2do-table bottom-margin-20">
              <thead>
                <tr>
                  <th>订单号</th>
                  <th>租约号</th>
                  <th>房东</th>
                  <th>付款人</th>
                  <th>收款银行</th>
                  <th>收款账号</th>
                  <th>订单金额</th>
                  <th>订单状态</th>
                </tr>
              </thead>
              <tbody>
                <c:forEach var="order" items="${orderList}">
                  <tr>
                    <td>${order.orderNo}</td>
                    <td>${order.contract.contractNo}</td>
                    <td>${order.customer.app.name}</td>
                    <td>${order.customer.name}</td>
                    <td>${not empty data.getFactoringContract(order.contract.contractNo) ? data.getFactoringContract(order.contract.contractNo).company.bankName : order.contract.app.payeeBankName}</td>
                    <td>${not empty data.getFactoringContract(order.contract.contractNo) ? data.getFactoringContract(order.contract.contractNo).company.cardNo : order.contract.app.payeeAccountNo}</td>                    
                    <td>&yen;&nbsp;${order.totalRent}</td>
                    <td><fmt:message key="${order.orderStatus.key}" /></td>
                  </tr>
                </c:forEach>
              </tbody>
            </table>
            <div class="col-xs-4">                  
            <div class="btn-group ">
              <p>合计：${total}</p>
            </div>                
            </div> 
      
        </div>
        
      </div>
        
     </div>
     
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <script src="${ctx.resource}/js/bootstrap-switch.min.js"></script>
  <script src="${ctx.resource}/js/bootstrap-modal-trigger.js"></script>
  <script src="${ctx.resource}/js/select2.min.js"></script>
  <script src="${ctx.resource}/js/select2_locale_zh-CN.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.en.js"></script>
  <script src="${ctx.resource}/js/earth-preupload.js"></script>
  <script src="${ctx.resource}/js/bootstrap-alert-fade-trigger.js"></script>
  <script src="${ctx.resource}/js/bootstrap-datetimepicker.min.js"></script>
  <script src="${ctx.resource}/js/bootstrap-datetimepicker.zh-CN.js"></script>
  
  <script type="text/javascript">
    
    $(".input-group.date").datetimepicker({
        format: "yyyy/mm/dd hh:ii:ss",
        autoclose: true,
        todayBtn: true,
        pickerPosition: "bottom-left",
        language: "zh-CN"
    });
    
    
  
  </script>
  
</body>
</html>
